﻿using FluentResourceMapping.AutoMapping;

namespace FluentResourceMapping.Tests.TestDummies
{
    public class AutoMappedClassOverride : IAutoMappingOverride<AutoMappedClass>
    {
        public void Override(AutoTypeResourceMapping<AutoMappedClass> mapping)
        {
            mapping.Map(o => o.Manufacturer, () => AutoMappedClassResource.Manufacturer);
            mapping.Map(o => o.Rooms, typeof (ResourcesAutoMappedClass), "Rooms");
        }
    }
}